import { Dayjs } from 'dayjs';
export enum ReservationStatus {
	Created = 'Created',
	Completed = 'Completed',
	Canceled = 'Canceled',
}

export interface Reservation {
	_id: string;
	guestName: string;
	contactInfo: string;
	arrivalTime: Date | string | Dayjs;
	reservedSize: number;
	status: ReservationStatus;
}

export type customArrivalTime = {
	arrivalTime: Dayjs | string;
};

export type BookReservationForm = Omit<Reservation, '_id' | 'status'> & customArrivalTime;

export type UpdateReservationForm = Omit<Reservation, '_id'> & customArrivalTime;

export type SearchReservation = Pick<Reservation, 'status' | 'arrivalTime'> & customArrivalTime;

export type stringKey = Record<string, string>;
